Skip to content

Conversation

@ndriessen
Copy link

The current logic didn't support AlloyDB postgres deletions. Deleting postgres CR caused various errors, regarding missing permissions and dependent object which caused failures to delete roles. Followed a similar logic as AWS RDS, where the user which the operator is running with is first made member of the database specific roles, so statements like REASSIGN OWNED can complete successfully.

Tested with CloudSQL postgres (v 17) and AlloyDB.

@pcallewaert pcallewaert self-requested a review November 18, 2025 09:35
The current logic didn't support AlloyDB postgres deletions. Deleting postgres CR caused various errors, regarding missing permissions and dependent object which caused failures to delete roles. Followed a similar logic as AWS RDS, where the user which the operator is running with is first made member of the database specific roles, so statements like REASSIGN OWNED can complete successfully.
Tested with CloudSQL postgres (v 17) and AlloyDB.
@pcallewaert pcallewaert force-pushed the fix/gcp_support_cloudsql_alloydb branch from 1f03e85 to 5187290 Compare December 17, 2025 07:42
@pcallewaert pcallewaert merged commit fd58e96 into movetokube:master Dec 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants